package com.hd.appcommon.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * user
 * @author 
 */
@Data
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 钉钉id
     */
    private String ddid;

    /**
     * 姓名
     */
    private String name;

    private String phone;

    /**
     * 学号/工号
     */
    private String jobNumber;

    /**
     * 0女 1男
     */
    private Integer gender;

    /**
     * 身份证
     */
    private String cardId;

    private String ddDeptId;

    /**
     * 密码
     */
    private String password;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT, strategy = FieldStrategy.NOT_EMPTY)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE, strategy = FieldStrategy.NOT_EMPTY)
    private Date modifyTime;

    /**
     * 1学生 2教师
     */
    private Integer type;

    /**
     * 人脸图像存储地址
     */
    private String imageUrl;

    private static final long serialVersionUID = 1L;
}
